#if !defined(__Gomoku_JuedgeDredd_h)
#define __Gomoku_JuedgeDredd_h

	#include "GameInfo.h"

	class JudgeDredd
	{
	public:
		JudgeDredd(void);
		~JudgeDredd(void);

		void	putPieceOnMap(GameInfo&, coord_t&);
		void	putPieceOnMap2(GameInfo, coord_t&);
		void	twinTriple(GameInfo, coord_t&);

	private:
		
		int		checkTTripleH(int**, coord_t&, int, int);
		int		checkTTripleV(int**, coord_t&, int, int);
		int		checkTTripleDSN(int**, coord_t&, int, int);
		int		checkTTripleDNS(int**, coord_t&, int, int);

		char	takeAPiece(GameInfo&, coord_t&);

		void	lookAlignement(GameInfo&, coord_t&, int, Way);
		int		checkTaken(int point, Way dir);
		int		makeAnswer(Way dir);
	};

#endif